package com.ruicar.afs.cloud.basic.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import lombok.experimental.Accessors;
import lombok.Data;
import java.math.BigDecimal;

/**
 * @author: Lee
 * @date 2020-05-29 09:31:34 
 * @description 合同贴息明细表
 */
@Data
@Accessors(chain = true)
@TableName(value ="basic_discount_details", autoResultMap = true)
public class BasicDiscountDetails extends BaseEntity<BasicDiscountDetails> {

	/** 费用ID */
	@ApiModelProperty("费用ID")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long costId;
	/** 合同号码 */
	@ApiModelProperty("合同号码")
	private String contractNo;
	/** 贴息方ID */
	@ApiModelProperty("贴息方ID")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long discountId;
	/** 贴息方 */
	@ApiModelProperty("贴息方")
	private String discountParty;
	/** 贴息比例 */
	@ApiModelProperty("贴息比例")
	private BigDecimal discountScale;
	/** 最高贴息额 */
	@ApiModelProperty("最高贴息额")
	private BigDecimal maxDiscountAmt;
	/** 实际贴息金额 */
	@ApiModelProperty("实际贴息金额")
	private BigDecimal discountAmt;
	/** 是否总对总 */
	@ApiModelProperty("是否总对总")
	private Boolean totalToTotal;
}
